public class Simulator {
    public void playSound(Animal  a){
        String name=a.getAnimalName();
        System.out.print(name);
        a.cry();
    }
}
